<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>在自定义组件上使用class</title>
  <script src="../vue.js"></script>
  <style>
    .color {
      color: red;
    }
    .size {
      font-size: 100px;
    }
  </style>
</head>
<body>
  <div id="app">
    <child class="color"></child>
  </div>
  <script type="module">
    import './child.js'
    new Vue({
      el: '#app'
    })
  </script>
</body>
</html>